import math
from fractions import Fraction
# 窗口的背景颜色
background_color = '#d9ffec'
# 物体的中心坐标
center = (220,300)
# 轨迹的半径
radius = 50
next_radius = 50
# 物体的角速度
angular_speed = 0.22
next_angular_speed = 0.20
# 角速度比列:
speed_Scaling = 10
# 物体的颜色
object_color = "#ff0000"
# 初始角度
theta = 10
next_theta = 10
# 参考系颜色
reference_color = '#000000'
# 暂停状态
paused = False
save_angular_speed = 0  # 用于保存暂停前的角速度
# 单位换算的缩放比
# 单位转换原理：20px -- > 0.2m
Scaling = 100
bg_refresh = False
# 测距函数启动状态
ranging = False
click_pos = []
model = None
# 状态
state = "run"
current_page = 'main'  # 新增页面状态控制
# 三个页面切换状态
page1_started = True
page2_started = False
page3_started = False
# 第二个页面的内容
angular_speed_two = 0.02
next_angular_speed_two = 0.02
radius_two = 50
next_radius_two = 50

theta_two = 0
next_theta_two = 0
phase = Fraction(0, 1)
interval = 1

center_one = (220,120)
center_two = (680,300)


# 添加轨迹点存储
trajectory_points = []  # 用于存储第二个页面的运动轨迹点center_two = (680,300)